package com.ruoyi.common.core.constant.constant;


import org.springframework.http.HttpHeaders;

/**
 * 关键字
 */
public interface KeyConstant {
    // 认证关键字
    String AUTHENTICATION = HttpHeaders.AUTHORIZATION;

    String REQUEST_SOURCE = "Request-Source";

    String RULE = "RULE";

    // DUBBO上下文认证关键词
    String DUBBO_AUTHENTICATION = "DUBBO_" + HttpHeaders.AUTHORIZATION;

    // 用户登录信息存储前缀
    String REDIS_AUTHENTICATION_PREFIX = KeyConstant.AUTHENTICATION + ":Online:user:";

    // APP
    String APP = "APP:";

    // 浏览器
    String BROWSER = "BROWSER:";

    // 小程序
    String MINI = "MINI:";

    // 后台管理
    String CRM = "CRM:";

    // 商家端
    String MER = "MER:";

    // 线程数据缓存
    String THREAD_CACHE = "thread:cache:";

}
